package adv330;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileRead3 {
    public static void main(String[] args) {
        //一次读完
        try {
            InputStream in=new FileInputStream("E:\\java_workspace\\IdeaProjects\\java83\\java高级\\src\\adv330\\FileTest4" +
                    ".java");
            in.skip(14);//前14个不要了
            byte b[]=new byte[in.available()];

            int len=in.read(b);
            String str=new String(b,0,len);
            System.out.println(str);
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
